package com.geek.demo01.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @ClassName Student
 * @Description TODO
 * @Author zzm
 * @Data 2020/9/14 20:24
 * @Version 1.0
 */
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class Student {

    @Id
    @Column(name = "id", length = 255, nullable = false, unique = true)
    private String id;

    private String name;
    private Integer age;
    private String className;
}
